/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-07-23 19:55:59
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-07-23 19:59:14
 * @FilePath: \实训笔记\day08\demo2.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day08;

public class demo2 {
  public static void main(String[] args) {
    int[] arr1 = { 1, 2, 3 };
    for (int num : arr1) {
      num = 4;
    }
    System.out.println("输出：" + arr1[0]);
  }
}// 输出：1
